<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>猜你喜欢</title>
    <link href="/before/css/common.css" rel="stylesheet" tyle="text/css" />
    <link href="/before/css/style.css" rel="stylesheet" type="text/css" />
    <link href="/before/fonts/iconfont.css" rel="stylesheet" type="text/css" />
    <script src="/before/js/lrtk.js" type="text/javascript"></script>
    <script src="/before/js/jquery.min.1.8.2.js" type="text/javascript"></script>
    <script src="/before/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
    <script src="/before/js/common_js.js" type="text/javascript"></script>
    <script src="/before/js/footer.js" type="text/javascript"></script>
    <script src="/before/js/jquery.jumpto.js" type="text/javascript"></script>
    <script src="/after/js/layer/layer.js" charset="utf-8"></script>
    <script src="/after/js/vue/vue.min.js" type="text/javascript"></script>
</head>
<body>
<div id="app" style="width:1200px; margin:0 auto;">
<div id="showcase" class="advanced">
    <div id="guessyou" class="m"><div class="mt"><h2>猜你喜欢</h2><a href="javascript:;" class="extra">更多</a></div>
        <div class="mc"><div class="spacer"><i></i></div>
            <ul id="lists">
                <li v-for="(book,index) in bookList" :class="'fore'+index">
                    <div class="p-img">
                        <a data-clk="" :href="'LQ_details.ftl?id='+book.id" target="_blank"><img data-lazy-img="done" width="130" height="130" v-bind:title="book.picture" :src="'/uploads/'+book.picture" class=""></a>
                    </div>
                    <div class="p-info">
                        <div class="p-name">
                            <a data-clk="" href="" target="_blank" v-bind:title="book.picture">{{book.name}}</a></div>
                        <div class="p-price" data-lazyload-fn="done"><span class="left"><i>¥</i>{{book.price}}</span><span class="Original_Price">{{book.price}}</span></div>
                    </div>
                    <div class="Detailed" style="display: none;">
                        <div class="content">
                            <p class="center"><a class="Buy_btn">立即购买</a></p>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
</div>
</body>
<script>
    var app = new Vue({
        el:'#app',
        data:{
            bookList:[]
        }
    })
    //    图书显示
    function showBook(){
        $.ajax({
            type:"POST",
            dataType:"json",
            url:"/main/enjoy.do",
            success:function(msg){
                app.bookList = msg.bookList;
            },error:function(){
                alert("显示错误！");
            }
        })
    }
    showBook();
</script>
</html>